<?

class graphSystemStatus  extends graphBase {
	protected $rrdFile = 'ping.rrd';
	protected function getOptions() {
		$opts = array();
		$opts[] = '--lower-limit';
		$opts[] = '-1';
		$opts[] = '--upper-limit';
		$opts[] = '1';
		$opts[] = 'DEF:pingtime='.$this->rrdPath.':PINGTIME:AVERAGE';
		$opts[] = 'CDEF:upStatus=pingtime,0,GT,1,UNKN,IF';
		$opts[] = 'CDEF:downStatus=pingtime,0,LE,-1,UNKN,IF';
		$opts[] = 'AREA:upStatus#CDEB8B:Online';
		$opts[] = 'LINE1.25:upStatus#006600';
		$opts[] = 'AREA:downStatus#FF0000:Offline';
		$opts[] = 'LINE1.25:downStatus#FF0000';
		return $opts;
	}
}